<template>
  <div style="overflow-x: hidden;background-color: rgba(43, 43, 43, 1);">
    <dashboard-head @changeMenu="changeBody" />
    <router-view />
  </div>
</template>

<script>
import DashboardHead from './components/DashboardHead'
export default {
  components: {
    DashboardHead
  },
  created() {
    this.$router.push('/szRobot/dashboard/robotMonitor')
  },
  methods: {
    changeBody(value) {
      if (value === 1) { this.$router.push('/szRobot/dashboard/robotMonitor') } else if (value === 2) { this.$router.push('/szRobot/dashboard/taskCenter') } else if (value === 3) { this.$router.push('/szRobot/dashboard/taskEdit') } else if (value === 4) { this.$router.push('/szRobot/dashboard/dataCenter') }
    }
  }
}
</script>

<style scoped></style>
